package com.flyco.modules.stm.service;

import com.flyco.modules.stm.entity.StmChannelStoreRelation;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 渠道供应商关系表
 * @Author: flyco
 * @Date: 2023-06-21
 * @Version: V1.0
 */
public interface IStmChannelStoreRelationService extends IService<StmChannelStoreRelation> {

    void deleteByStoreId(Long storeId);

    void deleteByStoreIdAndChannelId(Long storeId, Integer channelId);

    void saveByChannelIds(String storeIdStr, Long storeId, String channelIds);

    Integer updateStatusByChannelId(Integer status, Integer channelId);

    List<StmChannelStoreRelation> getByStoreId(Long storeId);

    List<StmChannelStoreRelation> getByChannelId(Integer channelId);

    void saveByChannelId(Integer channelId, Long storeId);
}
